<template>
  <div class="box pa-20">
     <div class="poster-item" v-for="(item,index) in posterList" :key="index">
         <div class="img-box">
             <img :src="item.img" alt="">
         </div>
         <div class="poster-content">
             <p>{{item.title}}</p>
             <router-link to="/mine/poster/banner">生成海报</router-link>
         </div>
     </div>
  </div>
</template>

<script>
import poster1 from '@/assets/images/poster-custom.png'
import poster2 from '@/assets/images/poster-custom1.png'
export default {
    name:'Poster',
    data(){
        return{
            posterList:[
                {img:poster1,title:'自购省钱分享赚钱'},
                {img:poster2,title:'宝妈社交电商'}
            ]
        }
    }
}
</script>

<style lang="scss" scoped>
@import "@/assets/css/public";
.box{
    background-color: $gray_bg;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.poster-item{
    width: vw(345);
    .img-box{
        width: 100%;
    }
    .poster-content{
        padding:vw(20);
        background-color: #fff;
        p{
            font-size: vw(28);
            text-align: center;
        }
        a{
            display: block;
            width: vw(180);
            height: vw(48);
            margin:0 auto;
            margin-top:vw(25);
            border-radius: vw(10);
            line-height: vw(48);
            text-align: center;
            font-size: vw(32);
            color: #fff;
            background: $orgGradientBg;
        }
    }
}
</style>